package com.vetalitet.components;

import android.util.Pair;

public class MathUtils {
    /*
    find position on circle moving backwards from 3 o'clock
     */
    public static Pair<Float, Float> findPointOnCircleByDegree(float x, float y, float radius, int angle) {
        final float x1 = (float) (x + Math.cos(angle) * radius);
        final float y1 = (float) (y + Math.sin(angle) * radius);
        return new Pair<Float, Float>(x1, y1);
    }

}
